package com.kelvin.paopao.injector.modules;

import com.kelvin.paopao.adapter.VipPriceAdapter;
import com.kelvin.paopao.injector.PerActivity;
import com.kelvin.paopao.module.market.wallet.vip.IVipPresenter;
import com.kelvin.paopao.module.market.wallet.vip.VipActivity;
import com.kelvin.paopao.module.market.wallet.vip.VipPresenter;

import dagger.Module;
import dagger.Provides;

/**
 * Created by MCK on 2017/5/23.
 */

@Module
public class VipModule {
    private VipActivity mView;

    public VipModule(VipActivity view) {
        this.mView = view;
    }

    @PerActivity
    @Provides
    public IVipPresenter providePresenter() {
        return new VipPresenter(mView);
    }

    @PerActivity
    @Provides
    public VipPriceAdapter provideAdapter() {
        return new VipPriceAdapter(mView);
    }
}
